package com.rd.student.jiaji.class4.suyan.zrrd.day07;

public class Demo07 {
    public static void main(String[] args) {
        String s1="abc";
        String s2="ab"+"c";
        String s3=new String("abc");
        System.out.println(s1==s2);
        System.out.println(s2==s3);
        System.out.println(s3==s1);
        System.out.println("------------");
        System.out.println(s1.equals(s2));
        System.out.println(s2.equals(s3));
        System.out.println(s3.equals(s1));
        String  s4="ABC";
        System.out.println(s4.equals(s3));
        System.out.println(s4.equalsIgnoreCase(s3));
    }
}
